package com.yunji.order.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Project: yunji-coffee
 * @Package: com.yunji.order.vo
 * @Title: PayoutVO
 * @Description: 提现申请信息
 * <p>
 * History:
 * Date						Version			Author			Summary
 * ========================================================================
 * 2024-04-22 09:44:42		V1.0			HuaAo		新建类
 */
@Data
public class PayoutCreateDTO implements Serializable {
    private static final long serialVersionUID = 2862238750068001553L;

    @NotNull(message = "提现渠道不能为空")
    @ApiModelProperty(value = "提现渠道 (1、微信支付; 2、阿里支付)", required = true)
    private Integer channel;

    @DecimalMin(value = "0", inclusive = false, message = "申请金额必须大于0")
    @NotNull(message = "申请金额不能为空")
    @ApiModelProperty(value = "申请金额", required = true)
    private BigDecimal amount;

    @NotBlank(message = "真实姓名不能为空")
    @ApiModelProperty(value = "真实姓名", required = true)
    private String realName;

    @NotBlank(message = "提现账户不能为空")
    @ApiModelProperty(value = "提现账户", required = true)
    private String account;

    @Override
    public String toString() {
        return "PayoutVO{" + "channel=" + channel + ", amount=" + amount + ", realName='" + realName + '\'' + ", account=" + account + '}';
    }
}